package com.example.time_bank_demo.vo;

import com.example.time_bank_demo.model.TbUser;
import lombok.Data;

@Data
public class UserVo  {


    /**
     * 用户id
     */
    private Integer id;

    /**
     * 用户名
     */
    private String name;

    /**
     * 用户手机号
     */
    private String phone;

    /**
     * 用户邮箱
     */
    private String email;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 身份证号
     */
    private String identityCard;

    /**
     * 省
     */
    private String provinces;

    /**
     * 市
     */
    private String cities;

    /**
     * 区
     */
    private String districts;

    /**
     * 详细地址
     */
    private String addressDetail;

    /**
     * 邀请码
     */
    private String inviteCode;

    /**
     * 用户类型
     */
    private String type;

    public UserVo() {
    }

    public UserVo(TbUser tbUser) {
        this.id = tbUser.getId();
        this.name = tbUser.getName();
        this.phone = tbUser.getPhone();
        this.email = tbUser.getEmail();
        this.password = tbUser.getPassword();
        this.nickName = tbUser.getNickName();
        this.identityCard = tbUser.getIdentityCard();
        this.provinces = tbUser.getProvinces();
        this.cities = tbUser.getCities();
        this.districts = tbUser.getDistricts();
        this.addressDetail = tbUser.getAddressDetail();
        this.inviteCode = tbUser.getInviteCode();
        this.type = tbUser.getType();
    }

}
